package tests;

import common.Utils;
import org.openqa.selenium.By;

import java.io.IOException;

public class PracticePage extends Utils {
    public static String url="http://8.155.1.153:8081/exercise";
    public PracticePage() {
        super(url);
    }

    public void checkPageRight() throws IOException {
        //查看页面关键元素
        driver.findElement(By.xpath("//*[@id=\"sk-layout\"]/div/div/section/div[2]/main/div/div[2]/div/div/div[2]/div[1]/form/div/div[2]/div/div/div[2]/div/div/div/div/div/div[2]/button"));
        driver.findElement(By.xpath("//*[@id=\"sk-layout\"]/div/div/section/div[2]/main/div/div[2]/div/div/div[2]/div[1]/form/div/div[2]/div/div/div[2]/div/div/div/div/div/div[1]/button"));
        driver.findElement(By.xpath("//*[@id=\"sk-layout\"]/div/div/section/div[2]/main/div/div[2]/div/div/div[2]/div[2]/div/div[1]/div/div[1]/div"));
        driver.findElement(By.xpath("//*[@id=\"sk-layout\"]/div/div/section/div[2]/main/div/div[2]/div/div/div[2]/div[1]/form/div/div[1]/div/div/div[2]/div/div/div/div/span[1]"));
        driver.findElements(By.xpath("//*[@id=\"sk-layout\"]/div/div/section/div[2]/main/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div/div/div/table/thead/tr"));
        ScreenShot(Thread.currentThread().getStackTrace()[1].getMethodName());
    }
}
